Infor interview question

- Reverse an array - Duplicate element in array