the solution to frogJump