Determine whether two nodes are related | Google Interview Question