Leetcode Count Inversions Practice