NIO Interview Question

Algorithm design, Graphs