Spotify Interview Question

Simulate traffic lights using plain HTML/Js/CSS.