Intel Corporation Interview Question

Basic graph traversal