Google Interview Question

Implementing graph traversal methods