What's wrong in this code

what’s wrong in this code - https://ide.codingblocks.com/s/382309

Hey @hssharma2212000 the logic you used is right, but the way you are printing your output is wrong.
With input: “AGGTAB” and “GXTXAYB”
Your output is: AGTAB
But order in which it’s expected is: GTAB

1 Like

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.