Stripe Interview Question

Multi-part string parsing question with an example input.