Goldman Sachs interview question

Software engineering, design patterns.