Stripe Interview Question

Algorithmic programming exercise of a financial themed problem