Given an array nums of n integers and an integer k, return the total number of jumps needed in the array.
An element nums[i] needs to jump another element nums[j] if:
Your notes are automatically saved in your browser's local storage and will persist across sessions on this device.