Yahoo Interview Question

a problem about graph analytics.