TEST CASES SHOWING WRONG. CODE WORKING FINE FOR THE SAMPLE INPUT

hi @Mukul-Shane-1247687648773500
please refer