EY interview question

Design Patterns