project44 interview question

Reverse array.