In realtà volevo capire come gestire l'array dalla funzione, cioè passare l'array come parametro di input e gestirlo.