K Inverse Pairs Array - LeetCode

Can you solve this real interview question? K Inverse Pairs Array - For an integer array nums, an inverse pair is a pair of integers [i, j] where 0 <= i < j < nums.length and nums[i] > nums[j]. Given two integers n and k, return the number of different arrays consisting of numbers from 1 to n such…