Google Interview Question

Graph parsing and traversing problems