Thoughtworks interview question

Design Pattern for a small project