New Observation

I observed from Raluca the request was to send the array to a function.
Please I do apologise for missing that step, but I ask you to kindly
take into consideration this new code, which does what was asked. Thank
you.