Unused departments
Your task
Finance audits the org chart for budget lines nobody uses. departments is the official list of department names (no duplicates); employees rows look like "name,dept". Return the departments with ZERO employees, sorted alphabetically. Employees whose dept is not in the official list can be ignored. Example: departments ["eng", "sales", "legal"] with employees ["ava,eng", "raj,eng"] give ["legal", "sales"].
Examples
empty_departments(departments: list[str], employees: list[str]) -> list[str]Example 1
Input
empty_departments(["eng", "sales", "legal"], ["ava,eng", "raj,eng"])Output
["legal", "sales"]