Question d’entretien chez Amazon

House robber leetcode problem was given.