Amazon interview question

Print a given input array in reverse order