Holidu interview question

reverse array