Lutron Electronics Interview Question

three lights riddle, pointers, question about implementing search algo