last.fm interview question

How to do various programming tasks with mapreduce.