Google Interview Question

Graph based find a path problem