ExxonMobil Interview Question

Talk about a design pattern