add O(n) solution for jump game