Python3 [runtime faster than 90.82%, memory less than 93.18%] + testing
```\n"""\nexercise: 1656. Design an Ordered Stream\nhttps://leetcode.com/problems/design-an-ordered-stream/\ncompany: Bloomberg\n"""\n\n\n# Your OrderedStream o
```\n"""\nexercise: 1656. Design an Ordered Stream\nhttps://leetcode.com/problems/design-an-ordered-stream/\ncompany: Bloomberg\n"""\n\n\n# Your OrderedStream object will be instantiated and called as such:\n# obj = OrderedStream(n)\n# param_1 = obj.insert(idKey,value)\n\nclass OrderedStream:\n\n    def __init__(self, n: int):\n        self.pairs = dict()\n        self.pointer = 0\n\n    def insert(self, idKey: int, value: str) -> list[str]:\n        self.pairs[idKey] = value\n\n        temp = list()\n        while self.pointer + 1 in self.pairs:\n            self.pointer += 1\n\n            temp.append(self.pairs[self.pointer])\n\n        return temp\n\n\nif __name__ == \'__main__\':\n    os = OrderedStream(5)\n\n    assert os.insert(3, "ccccc").__eq__([])\n    assert os.insert(1, "aaaaa").__eq__([\'aaaaa\'])\n    assert os.insert(2, "bbbbb").__eq__(["bbbbb", "ccccc"])\n    assert os.insert(5, "eeeee").__eq__([])\n    assert os.insert(4, "ddddd").__eq__(["ddddd", "eeeee"])\n
['Python', 'Python3']