I tried it on my own but got some error

hello @laksh.rustagi12

check now

bhaiya could you explain me why you made changes in line 16 17 or 23 24

see we need these values in later part of function , so thats why instead of increment its value inside the function, i am calling new function by adding one to it

here close and i in first if will be needed in second if as well ,so if we increase their value then it will produce wrong results

oh okay i got it. Thanks very much

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.

bhaiya you need not send this main 5* hi deta hun

thanks bro, ye automated message hai jo doubt resolved mark karne pe apne aap aata hai,baaki feedback de diya karo thoda sahi rehta hai…