Glia Interview Question

Create reduce JS function from scratch