jump-game.cpp code golf