Spotify interview question

Simulate traffic lights using plain HTML/Js/CSS.