Pergunta de entrevista da empresa RedDoorz

Calculate the sum of all elements in array using a Higher Order Function.