It is not working here!

This set of code is working fine in my local machine but not in website itself!

hey @Joy-Gupta-2763139277246091 ,
Can you please let me know , what kind of problem does it raises.
Means wrong output or something else.


And here is what i get in testcase output

hey @Joy-Gupta-2763139277246091 ,
I just ran your code and gave me , time limit error.
Kindly , recode this task , which is more efficient and has less dependence upon loops.
Your looping is taking a lot time to be done.

I hope this helps.

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.