Problem in solving lapindromes ! please help me find the errors

help

Your solution fails for e.g.

1
aaaaaaaaa