Count Inversions Hackerrank Python Solutions Github