https://programmers.co.kr/learn/courses/30/lessons/12912
간단한 구현문제이다.
def solution(a, b):
if a==b:
return a
if a>=b:
max_value=a
min_value=b
else:
max_value=b
min_value=a
result=0
for i in range(min_value,max_value+1):
result+=i
return result