Whats wring with the code please help


Kindly check it

code is correct
you have provide the wrong input
first provide no of testcase (t)
and then t strings