Lutron Electronics Interview Question

Asked me to solve a pointer question