C++ Easy Solution || Clean Code
\nclass OrderedStream {\npublic:\n    int pointer = 0;\n    vector<string>stream;\n    \n    OrderedStream(int n) {\n        stream.resize(n);\n    }\n    \n   
```\nclass OrderedStream {\npublic:\n    int pointer = 0;\n    vector<string>stream;\n    \n    OrderedStream(int n) {\n        stream.resize(n);\n    }\n    \n    vector<string> insert(int idKey, string value) {\n        vector<string>ans;\n        \n        stream[idKey-1] = value;\n        \n        while(pointer<stream.size() and stream[pointer] != ""){\n            ans.push_back(stream[pointer]);\n            pointer++;\n        }\n        \n        return ans;\n    }\n};\n```
['C', 'C++']