Jump Game 2

greedy algo