Create reducer_study_groups.py

Reducer for the "Study Groups Exercise"