ExxonMobil interview question

Talk about a design pattern