What should be the output of A…B…B…A ?
This is NOT allowed. This clarification should had been asked at the comments section- and in case they didnt reply it meant that either its given in statement or is a hint.
I am currently deleting answers for now, but please remember that this will lead to SUSPENSION of your account, (even blocking of your account from codechef itself- this is something we are really strict about).
Please refrain from discussing questions of a live contest.