Stripe interview question

marchant transaction processing, three parts