← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
You are given a list of employee records. Each record is a tuple (employee_name, manager_name) where manager_name is the name of the employee’s direct manager. The CEO has an empty string as manager_name. Build and print the entire employee hierarchy as an indented tree. Each employee must appear on its own line, indented by two spaces for every level it sits below the CEO. Within the same manager, employees must be listed in lexicographic order.