What is wrong with this problem

https://hack.codingblocks.com/app/practice/1/642/problem

please explain the logic how to appproach