Nutanix interview question

I had to debug a code based on Linked List.