Leetcode Inversion Count Codechef Contest