Johnson Controls interview question

Design patterns