learning git. prints successive differences given a sequence of integers