Calculate transaction fees from CSV records | TikTok Interview Question