I am not getting correct output please find what is wrong in it
can you please tell me at which line i am making mistake

here in this function u need to add node n to the end of the list but u are adding to its front.
use while loop to traverse to end of the list and then add n at that place.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.