PwC interview question

write program to reverse the array [1,2,3,45,01,10]