Simple python solution. Faster than 99.28%
\nclass OrderedStream:\n\n    def __init__(self, n: int):\n        self.n = n\n        self.start = 1\n        self.ls = [None]*(n+1)\n\n    def insert(self, id
```\nclass OrderedStream:\n\n    def __init__(self, n: int):\n        self.n = n\n        self.start = 1\n        self.ls = [None]*(n+1)\n\n    def insert(self, idKey: int, value: str) -> List[str]:\n        self.ls[idKey] = value\n        if self.ls[self.start] is None:\n            return []\n        \n        ans = []\n        \n        while self.start <= self.n and self.ls[self.start] is not None:\n            ans.append(self.ls[self.start])\n            self.start+=1\n        \n        return ans\n\n# Your OrderedStream object will be instantiated and called as such:\n# obj = OrderedStream(n)\n# param_1 = obj.insert(idKey,value)\n```\n\nIf there are any questions do comment
[]