Declared the array function parameter const since it shall not be changed by the function.