Infosys interview question

Remove duplicate from linked list.