Elephant in chess Grid based Dp question

What is the exact wording of the question.?