Stripe interview question

Building on the previous, but with more validations.