Leetcode 775. Global and Local Inversions | Hello Interview