Adobe interview question

Reverse an array and reverse a Linked list