group by를 사용해서 해당 문제를 풀어보자
출처 HackerRank
https://www.hackerrank.com/challenges/earnings-of-employees/problem