Stripe Interview Question

Build a string parser in java