✅C++||String Array || Easy Solution
\nclass OrderedStream {\npublic:\n    string dp[1005];\n    int ptr;\n    OrderedStream(int n){\n        ptr = 1;\n    }\n    \n    vector<string> insert(int id
```\nclass OrderedStream {\npublic:\n    string dp[1005];\n    int ptr;\n    OrderedStream(int n){\n        ptr = 1;\n    }\n    \n    vector<string> insert(int idKey, string value) {\n     dp[idKey] = value;\n        if(dp[ptr] != ""){\n            vector<string> ans;\n            for(int i=ptr;i<=1005;i++){\n                if(dp[i] != ""){\n                    ans.push_back(dp[i]);\n                    ptr = i+1;\n                }\n                else\n                {\n                    break;\n                }\n            }\n            return ans;\n        }\n        return {};\n    }\n};\n\n```\n```\nPlease upvote if it was helpful for you, thank you!\n```
['C']