Google Interview Question

Arrange array in reverse but their was a trick