Slide Inc interview question

Write a program to reverse a array