Why my code is not passing the test case

hello @anshulgurawalia
ur reverse function will reverse the original list which is wrong.

create a clone of given list and then reverse that clone
and then comparre with original given list

can you please make changes into my code

ur current code is incomplete ,add logic for cloning the given list
and then send its link with me . i will make other required changes

@anshulgurawalia

check now->

added clone function to make clone of given list.
and rest of the logic is same

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.