Wipro interview question

Algorithm for map-reduce