Microsoft interview question

Reverse a linked list and array