Given this input: [ ["1","Deposit","5.00",""], ["3","Food","","4.01"], ["3","Cab","","0.98"], ["4","Deposit","3.14",""], ["4","Food","","1.99"], ["5","Food","","2.00"], ["6","Deposit","4.84",""], ["7","Food","","3.14"], ["7","Bus","","0.41"], ["7","Bus","","0.34"], ]
they wanted this output:
Date Description Withdraw Deposit Balance
1 Deposit 5.00 5.00
3 Food 4.01 0.99
3 Cab 0.98 0.01
4 Deposit 3.14 3.15
4 Food 1.99 1.16
5 Food 2.00 -0.84
6 Deposit 4.84 4.00
7 Food 3.14 0.86
7 Bus 0.41 0.45
7 Bus 0.34 0.11
Final balance: 0.11