Test case 7 and 8 failing

pls check why test case 7 and 8 are not passing

Your code is not working for this case ABCDEFGI
Increase the size of your character array to 9 and then check,

thankyou its working now…

…pls update the constraints to avoid such doubts