Adobe Interview Question

Reverse an array and reverse a Linked list