Please help to correct the code


this was the code sent by one of your TAS and it is not working
please send correct codes from next time
this is happening again and again
he has solved it for a particular case
and is not valid for multiple case

@harryson

Refer the approach from the above link and try to code it on your own. I can share the code only if you are not able to proceed.

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.