Can anyone please let me know why my code for LADDU is showing wrong

Please find the link to my solution for LADDU. It is working fine in my local.

https://www.codechef.com/viewsolution/30955621

Thankyou.