Pregunta de entrevista de Lutron Electronics

Leetcode easy and theoretical question