hi
your code is not working because you have given empty array as the input to the Replace array subset function.
first give some values in the array and then replace at the particular index.
If you want to insert value in new array use insert array function instead of replace array.