NIO Interview Question

Topological Sorting and 3 Sum