Intersection of inked list

ques:
https://hack.codingblocks.com/app/contests/1238/505/problem
ans:


please correct the error.