Stripe interview question

One of the coding questions involved implementing logic using objects rather than solving an algorithmic-style problem.