Hi PR,
PFB the udf code and sample output for the input.
![1.PNG]()
![2.PNG]()
UDF code:
int i=0;
for(;i<input.length;i++)
result.addValue(input[i]);
result.addContextChange();
for(i=0;i<input.length;i++)
result.addValue(input[i]);
Try this out and let me know if you having any issues.
Regards