[JavaScript] Easy solution
```\n/\n * @param {number} n\n */\nvar OrderedStream = function(n) {\n    arr = new Array(n);\n    plt = 0;\n};\n\n/ \n * @param {number} idKey \n * @param {str
```\n/**\n * @param {number} n\n */\nvar OrderedStream = function(n) {\n    arr = new Array(n);\n    plt = 0;\n};\n\n/** \n * @param {number} idKey \n * @param {string} value\n * @return {string[]}\n */\nOrderedStream.prototype.insert = function(idKey, value) {\n    arr[idKey-1] = value;\n    let tempArr = [];\n    for(let i = plt; i < arr.length;i++){\n        if(typeof arr[i] != "undefined"){\n            tempArr.push(arr[i]);\n            plt++;\n        }else{\n            break;\n        }\n            \n    }\n    return tempArr;\n};\n
[]