Given TestCase is wrong!

Due to the wrong given test case, I am unable to submit my answer. Please review the testcases of the problem and ensure that everything is correct.

This is the link to my code.

yes test cases are correct…

if this is the case then, could you please tell me what am i missing by looking over my code???

1
oloaxgddgujq
oloaxgujqddg
answer is yes

hope you got it what you are missing plz read the Q one time more…

okay i got your point. So according to you what should be the output of the test case below

1
ababa
baaba

this is my updated code!!!

@shantanumittal3499 length is odd we cannot divide it into two equal parts. and if we are able to divide it into two equal parts then they should satisfy the initial condition…

1
ababa
baaba
we cannot divide it into equal parts so ans is no…

I have tried everything but still getting WA in 1 test case on submission.

please tell me what am i doing wrong in my code

i am providing you the test case for that it will be only helpful if you find your mistake yourself…so try again…

5
snyaydaeobufdg
snyaydaeobufdg
hagnzomowtledfdotnll
ledfdotnllomowthagnz
uwzwdxfmosmqatyv
dxfmzwwusomqvyta
oloaxgddgujq
oloaxgujqddg
abcd
dcba

all YES

thanks a lot, finally identified the point which i was missing and got my solution submitted.