frog jump problem