S&P Global Interview Question

How will you find out the duplicate number in the given array?