Stripe Interview Question

Coding round, practical considering it is a payment company