Design MapReduce algorithms to take a verylarge file of integers and produce as output:(a) The largest integer.(b) The average of all integers.(c) The same set of integers, but with each integer appearing only once.(d) The count of the number of distinct integers in the input.How i am i supposed to write a solution?can any one help with the solution?