Pls tell error in this code.. only one test case is passing

pls tell me where an i going long… its been long since when i shared the doubt