Help needed in last starter contest problem positive spewing

Problem link Contest Page | CodeChef
My code link Solution: 51214912 | CodeChef
I don’t think i am doing something wrong help please