Nutanix Interview Question

Debugging linked list codes for reversal