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 CodeChef: Practical coding for everyone
Please help me with this. Thanks.

CodeChef: Practical coding for everyone - made some changes to your solution , refer this for help.