Google Interview Question

Extracting the nodes in a circular graph in clockwise direction