Jumping box problem

Question

Hints

Answer