Java solution
private String[] arr;\n    public OrderedStream(int n) {\n        arr = new String[n];\n    }\n\n    public List<String> insert(int id, String value) {\n       
```   private String[] arr;\n    public OrderedStream(int n) {\n        arr = new String[n];\n    }\n\n    public List<String> insert(int id, String value) {\n        int index = (id-1);\n\t\tList<String> list = new ArrayList<>();\n        \n\t\tif(index < 0 || index > arr.length) return list;\n        \n        arr[index] = value;\n        for(int i=0; i< arr.length; i++){\n            if(arr[i] == null) return list;\n            else {\n                if(i >= index){\n                    list.add(arr[i]);\n                 }\n            }\n        }\n        return list;\n    }\n```
[]