Lutron Electronics Interview Question

One circuit problem and two c program problems