Python Easy to Understand Solution
\nclass OrderedStream:\n\n    def __init__(self, n: int):\n        self.val=[[] for i in range(n+1)]\n        self.left=0\n\n    def insert(self, id: int, value
```\nclass OrderedStream:\n\n    def __init__(self, n: int):\n        self.val=[[] for i in range(n+1)]\n        self.left=0\n\n    def insert(self, id: int, value: str) -> List[str]:\n        self.val[id-1]=value\n        if self.left!=id-1:\n            return []\n        ans=[]\n        while self.val[self.left]!=[]:\n            ans.append(self.val[self.left])\n            self.left+=1 \n        return ans\n\n\n# Your OrderedStream object will be instantiated and called as such:\n# obj = OrderedStream(n)\n# param_1 = obj.insert(id,value)\n```
[]