Couldnot understand this problem

https://hack.codingblocks.com/contests/c/537/97