URI Online Judge Solution| 1007 Difference

Problem:
https://www.urionlinejudge.com.br/judge/en/problems/view/1007

Solution: