Jump Trading interview question

Leetcode 198 House Robber. DP Q.