Pergunta de entrevista da empresa Programming.com

Write a polyfill of reduce function in javascript and them use it on an array of numbers to compare with vanilla reduce.