Tilling Problem

Sir , Actually i could not understand what is the problem with my code , it is giving right answer with one test case only

Please send the code link generated after saving your code on cb.lk/ide.

Your code is correct, just take step wise mod.
Your updated code.