findDuplicate = function(nums) {
    cyclicSort(nums);                                 /* Time O(N) */

    return search(nums);                              /* Time O(N) */
}
https://leetcode.com/problems/find-the-duplicate-number/
Time O(N) | Space O(1)
@param {number[]} nums
@return {number}