TASK DEFINITION: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right
PROBLEM: [21, 30, 39, 48, 57, 66, 75, 84, 93, 102, 111, 120, 129, 138, 147]

SOLUTION: 1

PROBLEM: [55, 68, 64, 80, 5, 87, 39, 88, 73, 45]

SOLUTION: 2

PROBLEM: [37, 82, 28, 10, 76, 2, 63, 61, 54, 73]

SOLUTION:
2