return an rdd of grouped items

Solutions on MaxInterview for return an rdd of grouped items by the best coders in the world