Question d’entretien chez Standard Chartered Bank

Reverse array and find duplicate elements in array.