Stripe interview question

Q: Design problem, coding, debugging, javascript