greedy method to solve the maximum jump position