Inversion Count In Leetcode Solutions