Count Number Of Inversions Leetcode