WA in EATTWICE

question EATTWICE Problem - CodeChef
solution CodeChef: Practical coding for everyone