function that takes an array of integers as input and returns the resulting output array.

Published --