Can somebody explain me why I am getting wrong answer for that problem

Problem Link
Solution Link