Google Interview Question

The question was based on graph and binary trees.