Leetcode 3193. Count the Number of Inversions | Hello Interview