Stripe Interview Question

Splitting a transaction note in Python