Pergunta de entrevista da empresa Amazon

House robber leetcode problem was given.