Pergunta de entrevista da empresa Amazon

Minimum bulbs to light the whole room coding question