Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Friday, Dec 4.Claim the deal

Given a list of stock transactions ordered by timestamp. Each transaction is either a "buy" or a "sell" and is represented as a list of strings in the format of: [<timestamp>, <type>, <amount>, <price>]. Each sell transaction incurs a 10% tax on the profit earned. If no profit is made, the tax is zero.

Test Cases
Input
Output
Expected