Stripe interview question

String manipulation question. Had to parse a large string that comes in a format similar to csv.