NIO interview question

general data structure and algorithm question: eg: DFS