Stripe Interview Question

Programming problem to be solved in 45 minutes timeframe