Find the Duplicate Number

Try to solve the Find the Duplicate Number problem.

Statement

Given an array of positive numbers, nums, such that the values lie in the range [1,n][1, n], inclusive, and that there are n+1n+1 ...