Example 1
1 <= nums.length <= 10001 <= nums[i] <= 1000All the calls to next and peek are valid.At most 1000 calls will be made to next, hasNext, and peek.Example 1
1 <= nums.length <= 10001 <= nums[i] <= 1000All the calls to next and peek are valid.At most 1000 calls will be made to next, hasNext, and peek.