I got WA in SUBMIMX problem in FizzBuzz

I checked other ppl’s solutions, they have solved it the same way as I did, but I’m getting WA. The link to my solution is Solution: 54354885 | CodeChef
Please help me with this. Thanks.

Solution: 54360592 | CodeChef - made some changes to your solution , refer this for help.