Kindly tell the problem in my code

https://hack.codingblocks.com/app/contests/2173/1307/problem

also tell how the input of linked list is working

hello @laksh.rustagi12
check now

we are using hashmap to keep track of all inserted node and if any new data arravies that os already present inside map then instead of adding new node we are just adding last node link to the first occurence of the node