Easiest C++ Code
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:O(n)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:O(n)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass OrderedStream {\npublic:\n\n    string v[1000];\n    int curr=0;\n\n    OrderedStream(int n) {\n\n\n        \n    }\n    \n    vector<string> insert(int idKey, string value) {\n        v[idKey-1]=value;\n        vector<string>ans;\n        while(v[curr]!=""){\n            ans.push_back(v[curr]);\n            curr++;\n        }\n        return ans;\n\n        \n        \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```
['Array', 'Design', 'Data Stream', 'C++']