Pregunta de entrevista de Amazon

SQL: recursive cte to find the reporting manager chain (leetcode problem)