No bugs found in the code

I have tried dry running my code and I can’t find any error in it. Can you please tell me what is wrong with my code?

hi @astha119btcse21_7380491a239a3b9b, refer this ive commented
tip : simplify the input taken and do mod every time

Where do I have to take the mod?

@astha119btcse21_7380491a239a3b9b check line 25 in the code

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.