Pergunta de entrevista da empresa Walmart Global Tech

Code a bespoke version of forEach, map, and reduce