def arrayMaximalAdjacentDifference(inputArray):
    dif = 0
    for i in range(1, len(inputArray)):
        if abs(inputArray[i] - inputArray[i-1]) > dif:
            dif = abs(inputArray[i] - inputArray[i-1])

    return dif

'''
Given an array of integers, find the maximal absolute difference between any two of its adjacent elements.

Example

For inputArray = [2, 4, 1, 0], the output should be
arrayMaximalAdjacentDifference(inputArray) = 3.'''