Frage im Vorstellungsgespräch bei Visa Inc.

Write a reduce function, both with and without recursion.