Inversion Count In Leetcode Two Pointers