Inversion Count In An Array Leetcode Question