One test case is not passing

Can’t able to find out why one test case is not passing
here is my code

Hey @shubhamkumarsingh
try for this input :
fcahgdeb
Debug your code