Cloudera Interview Question

Algorithm, graphs.