Lutron Electronics interview question

One circuit problem and two c program problems