Count Number Of Inversions Leetcode Contest