AppFolio interview question

Design a smart sockets. Start from the begining.