Help Rahul to Search

Please share the SOLUTION my code is not able to pass one of the testcases even if the output is correct : https://ide.codingblocks.com/s/700210