Problem in A puzzel game Problem Code:H1

It is the problem from the beginner level problem of practice.
There is no editorial for this problem. Please provide the editorial for this so I can easily understand the problem.

Or

can someone explain me the problem clearly