Amazon interview question

House robbers leetcode dp problem