S&P Global interview question

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