new file:   jump_game/solution2.py