My code is working for the sample test cases but is giving wrong answer on submission.Can someone point out on which corner test cases my code can fail. Here is my code: https://www.spoj.com/submit/PALIN/id=23923761
https://www.spoj.com/submit/PALIN/id=23923761
My code is here:–> https://www.spoj.com/submit/PALIN/id=10066449