Pregunta de entrevista de Cortex (CA)

Given a JSON structure, a list of employees, print out a tree like result which indents for employee manager relation. Each record has an employee id and their manager id which points to another employee id in the list,