Count Inversion In Array Leetcode Problems Javascript W3schools