Adobe Interview Question

Create a polyfill for array reduce