Snowflake interview question

Find duplicate number in an array