The problem is a graph problem where you have to output the node which is already visited, that's about it. But, due to some reason, the output is going wrong after some number of pretests. Can your please have a look into it point out where am I going wrong ??