NIO Interview Question

general data structure and algorithm question: eg: DFS