Count Inversion In Array Leetcode