Please help me to find the error i have messed up the code
@naaz have you also changed the original code also because you dont have to change the code but you rather have to write your logic in the function which was define .
i think you have even change the fucntion name and all .
try this i have reimplemented your logic correctly .
if you feel that your doubt is cleared please mark this doubt as resolved and do hit the like button.
Happy Learning !!