The code is working fine on sublime text but showing wrong ans on coding blocks ide

can you tell me what is the problem with my code ??

@Abhishek-Ghosh-2306223462800568 hey abhishek your implementation is wrong refer the video solution and for multiple test case apply a loop as while
(T- -)