THG interview question

Object oriented patterns