문제링크 : https://school.programmers.co.kr/learn/courses/30/lessons/181188
def solution(targets):
ans = 1
targets.sort(key=lambda x:x[1])
h = [targets[0][1]]
for x,y in targets[1:]:
if x >= h[0]:
h = [y]
ans += 1
return ans