Pregunta de entrevista de Amazon

House robber leetcode problem was given.