1. Determine if an employee is an IC or a manager, and count direct and total reports
Given an organizational chart represented as a dictionary, write a function to determine if an employee is an Individual Contributor (IC) or a Manager, and count their direct and total reports. For example, given the following input:
orgChart = {
"a": {
"a1": {
"a11": None,
"a12": None,
"a16": {
"a13": None,
"a14": None,
}
},
"a2": None
},
"b": None
}
The output should indicate that 'a' is a Manager with 2 direct reports and a total of 6 reports, while 'b' is an IC with 0 direct and total reports.