Microsoft Interview Question

simple graph algorithm questions