What is my mistake


here is the code

@hhiteshbansal_40d12e2460a1738e,
you are not keeping track of position
for aabaaaaa you ans is a7b but it should be a2ba5

@hhiteshbansal_40d12e2460a1738e,
if you r having implementation details check this https://ide.codingblocks.com/s/655945

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.