Jet Interview Question

-Implement fold using map (functional programming)