Python Commented beats 90% | Iteration, Codesplitting
class OrderedStream:\n\n    def init(self, n: int):\n      self.arr = [None]*n # initialize the array for size n\n      self.ptr = 0 # remeber where the stream 
class OrderedStream:\n\n    def __init__(self, n: int):\n      self.arr = [None]*n # initialize the array for size n\n      self.ptr = 0 # remeber where the stream pointer is at\n    def get_chunk(self):\n      chunk = []\n      \n      # Construct the next chunk by checking bounds, and ensuring value is not None\n      while self.ptr < len(self.arr) and self.arr[self.ptr]:\n        chunk.append(self.arr[self.ptr])\n        self.ptr+=1 # Update the pointer\n      return chunk\n    def insert(self, idKey: int, value: str) -> List[str]:\n      # set the arr\'s 0-indexed value to the incoming value\n      self.arr[idKey-1] = value\n      return self.get_chunk() # then return the chunk
['Python', 'Python3']