Mayur interview question

Reverse array in place and reverse linked list.