Pergunta de entrevista da empresa Visa Inc.

Write a reduce function, both with and without recursion.