Lutron Eletronics interview question

Some basic coding questions