POSAND - Editorial

why am i getting WA
my soln : Solution: 41463928 | CodeChef
question:Contest Page | CodeChef
plzz reply

The same logic I have applied but still giving partially right answer,can anyone help me??

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