Pergunta de entrevista da empresa Oracle

House Robber Leetcode problem, dynamic programming