Synchrony interview question

Group by function in python