Wrong Answer showing can anyone tell for what test case this code will give wrong answer..

question link CLFIBD Problem - CodeChef
solution link CodeChef: Practical coding for everyone