Pergunta de entrevista da empresa Amazon

House robber variation from Leetcode