Pergunta de entrevista da empresa Healthgrades

basic javascript and html interaction question, make a div change color on click