Solved FrogJump in C