Accelrys Interview Question

graph problem