Google interview question

Arrange array in reverse but their was a trick