Amazon Interview Question

House robbers leetcode dp problem