Frage im Vorstellungsgespräch bei Standard Chartered Bank

Reverse array and find duplicate elements in array.