Design and implement a customer revenue tracking system with the following operations: 1. insert(revenue: int) -> int: Add a new customer with the given revenue and return an auto-incrementing customer ID (starting from 0). 2. insert(revenue: int, referrer: int) -> int: Add a new customer referred by the given referrer…