SafeSend interview question

How do you use group by in my SQL?