Remove loop from linked list

not getting why this approach answer is wrong.
https://practice.geeksforgeeks.org/viewSol.php?subId=c5376f09205b1d473992e7688578464b&pid=700332&user=naveenshankar2010

check the functions removetheloop() and rtl()