Intel Corporation interview question

Write rtl code for how to design a traffic light