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: [28, 36, 44, 52, 60, 68, 76, 84, 92, 100, 108, 116, 124, 132, 140, 148, 156, 164, 172]

SOLUTION: 1

PROBLEM: [68, 17, 43, 6, 65, 41, 32, 98, 53, 29]

SOLUTION: 2

PROBLEM: [72, 36, 69, 43, 88, 14, 49, 82, 83, 26]

SOLUTION:
2