Jet interview question

-Implement fold using map (functional programming)