Inversion Count In An Array Leetcode Questions On Python