Tiger Analytics Interview Question

Write a method to find the duplicate of the array