Amazon interview question

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