c++ easy straightforward
\nclass OrderedStream {\npublic:\n    \n    vector<string> orderedStream; \n    \n    int start;\n    \n    OrderedStream(int n) {\n        for(int i=0; i<n; i+
```\nclass OrderedStream {\npublic:\n    \n    vector<string> orderedStream; \n    \n    int start;\n    \n    OrderedStream(int n) {\n        for(int i=0; i<n; i++){\n            orderedStream.push_back("");\n        }\n        \n        start = 0;\n    }\n    \n    vector<string> insert(int idKey, string value) {\n        orderedStream[idKey-1] = value; \n        \n        vector<string> ans;\n        \n        for(int i=start; i<orderedStream.size(); i++){\n            if(orderedStream[i] != ""){\n                start++; \n                ans.push_back(orderedStream[i]);\n            }\n            else{\n                return ans;\n            }\n        }\n        \n        return ans;\n    }\n};\n\n/**\n * Your OrderedStream object will be instantiated and called as such:\n * OrderedStream* obj = new OrderedStream(n);\n * vector<string> param_1 = obj->insert(idKey,value);\n */\n ```
['C', 'C++']