a puzzle game

can anyone explain me this problem
https://www.codechef.com/problems/H1

i found this might hekp you link text

i found this might hekp you link text

//