Test case 2 - wrong answer

My solution: https://ide.codingblocks.com/s/415560

Question: https://online.codingblocks.com/app/player/178555/content/173713/4799/code-challenge

Test case 2 - wrong answer
Test case 0,1,3 - correct answer

Hello @mohaktrivedi please wait i am checking your code.

@mohaktrivedi i have corrected and commented the mistake:


if you have any doubt you can ask here:
Happy Learning!!

@tusharaggarwal272 Got it! Thanks! Marked as resolved.

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.