Pregunta de entrevista de Cisco

House robber from leetcode website