Workday interview question

DOM manipulation, Pub/Sub pattern