Coding Blocks IDE


i tried to write the code of alyona and strings same as the sir taught in the video.
can you tell me where i am going wrong?

it gives wrong answer for
9 12 4
bbaaababb
abbbabbaaaba

it should give 7 as an output