Code Wars II - Array Helpers - Solving the kata