Babbel interview question

Design patterns, live code challenge