Help with Lapindromes Code:-Lapin


here is my code. I am not able to figure out why is my code getting a wrong answer?

Consider the test input:

1
ddbebggde