How can I return arrays from a function using ref keyword?

I Appreciate your suggestions!!