S&P Global Interview Question

Nothing too hard, brush up on data structures and OOP.