Addepar Interview Question

Code a function that parses an input to correctly update account balances given a trade.