https://school.programmers.co.kr/learn/courses/30/parts/17042