Custom input shows right answer but submission shows wrong answer

How do i tackle this

Click here to start solving coding interview questions