Pregunta de entrevista de ThousandEyes

reduce a tree (using array.prototype.reduce)