Unable to clear test case 0 and 2

please explain to me what are the corner cases that are not covered by my code.

@satyendra4030
Here is a test case to help you out
Q : aababbabbbbacdef
?c
A : MATCHED