Pergunta de entrevista da empresa DataEconomy

Data Science Basics, OOP in detail, how will you impliment a traffic light system?