Inversion Count In Array Leetcode Questions On Python