AppDynamics interview question

Linked list reversal