https://hack.codingblocks.com/app/contests/2612/61/problem
can you please tell me how to solve this problem?