Incorrect output

ima getting incorect output

@Rama you have to take test cases and print answer for each test case. And what is the for loop doing? It cannot run more than 1 time anyway

i have taken the test case but then also i am getting wrong output