DSA DPAIRS

[CodeChef: Practical coding for everyone]
what is wrong in the code??
Iam not able to get it