Hitasoft interview question

Php is basic question and program for reverse array