BP Wealth Interview Question

Query for SQL