Enverus interview question

Design pattern