Runguard warning

I cant understand how its showing runguard warning error…
I solved this same problem in InterviewBit in the same way I am doing here.There may be some problem in the pre written codes for this problem here.Can you pl clarify me out.

It ran fine,Thank You

Hello @sayangosw i have just checked your code is passing all the test cases:

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.