Compute distance of each node to a cycle | Microsoft Interview Question