Toast Inc Interview Question

A moderate OOP design problem