Question d’entretien chez PwC

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