Heady interview question

Design Patterns used