Nutanix Interview Question

I had to debug a code based on Linked List.