How to solve LeetCode problem 565: Array Nesting efficiently?
565.如何实现数组嵌套结构?