AppDynamics Interview Question

Linked list reversal