Add solution based on map, reduce
Add formatting