S&P Global interview question

OOP Design for Vending Machine