Count Inversions Hackerrank Python Challenges