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: [174, 166, 158, 150, 142, 134, 126, 118, 110, 102, 94, 86, 78, 70, 62, 54, 46, 38]

SOLUTION: 1

PROBLEM: [93, 76, 77, 21, 51, 95, 43, 25, 4, 82]

SOLUTION: 2

PROBLEM: [97, 70, 43, 40, 12, 50, 55, 18, 61, 10]

SOLUTION:
2