Stripe interview question

Splitting a transaction note in Python