Preorder Traversal Without Invalid Nodes
Problem overview from a real Snowflake interview:
You are given a rooted tree with n nodes labeled from 0 to n - 1, represented by directed edges edges, where edges[i] = [parent, child].
Check more interview questions and experiences about Snowflake
