Count Number Of Inversions Leetcode Contest Time