NIO interview question

nothing much to share here