1 test case is not passed
@Sadaf_khan0107,
Your code will not work for the test case:
abcc
It will give a outofBoundException at run time.
Because of this:
str.substring(si+2)
@Sadaf_khan0107,
Your code will not work for the test case:
abcc
It will give a outofBoundException at run time.
Because of this:
str.substring(si+2)