Domanda di colloquio di Lutron Electronics

Asked me to solve a pointer question