https://www.lintcode.com/problem/inverted-index-map-reduce/description -- decription of the map reduce problem 1. click the submit button to view the problem. 2. logic of map reduce, each time, they only deal with one key value pair (for map and redu…