Getting wrong anwser can't find where i'm wrong

https://www.codechef.com/AUG20B/problems/SKMP
https://www.codechef.com/viewsolution/36854843

sample testcases have passed but don’t know which test cases are failing

input
1
aaaabbbb
ba
your output
aaabbbba

expected output
aaababbb

1 Like

thank you @depressed_code

1 Like