Pregunta de entrevista de Amazon

Minimum bulbs to light the whole room coding question