Oracle interview question

House Robber Leetcode problem, dynamic programming