I am not passing some test cases even though it is giving the correct answer for multiple inputs that i have tried

It is giving a run error in one of the test cases, rest all are passing

@Ak07
for input like fcahgdeb u are getting segmentation fault

okay, how do I correct this…

@Ak07
refer to this corrected implementation here