One test case not working

wrong answer for one test case, not getting any idea

@divyansh0003
Your code gave wrong ans for this question
Q : 4
gitohro qf ejvh i
3
gor
pih
sto
A : gitohro i

If your doubt is resolved please close it