Apple interview question

Implement Map Reduce using Python or other language of choice