Giving wrong answer here, working fine on leetcode

my code is working fine for sample testcase as well as the copyList function is also working fine on leetcode, but on submission it is giving wrong answer. Help…

This doubt is for linked list problem - make a deep copy of list.

@Rakshit-Singh-1744969838949457 please ask on same question i dont get the question if u ask at other question

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.