Avanza Interview Question

Reverse a sorted array without using in built functions