Inversion Count Problem In Leetcode