You are given an initial map with balance of users [A=10,B=200] and list of transactions of the form [[A,B,10],[B,C,20],[C,A,5]] where 10 means A gives 10% of his money to B. Now suppose the kth transaction is deleted, output the map with correct balance for each user.
Example:
A=100,B=100,C=100
[[A,B,10],[B,C,20],[C,A,5]
A=96.1,B=88,C=115.9
Delete 2nd transaction
A=95,B=110,C=95