Amazon Interview Question

Print a given input array in reverse order