C++||Easy to Understand
```\nclass OrderedStream {\npublic:\n    vector stream;\n    int i=0;\n    OrderedStream(int n) \n    {\n        stream.resize(n);\n        \n    }\n    \n    v
```\nclass OrderedStream {\npublic:\n    vector<string> stream;\n    int i=0;\n    OrderedStream(int n) \n    {\n        stream.resize(n);\n        \n    }\n    \n    vector<string> insert(int idKey, string value)\n    {\n        vector<string> res;\n        stream[idKey-1]=value;\n        while(i<stream.size()&&stream[i]!="")\n        {\n            res.push_back(stream[i]);\n            i++;\n        }\n        return res;\n        \n    }\n};\n//if you like the solution plz upvote.
['C']