Jet Interview Question

Implement some functional programming built in utilities in your favorite programming language (python in my case).