Problem https://www.codechef.com/problems/CHRL4

I am getting a sigbart error my solution ( https://www.codechef.com/viewsolution/38143052 )
i dont get it on ide though