Salesforce Interview Question

Graph traversal easy leetcode problem