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: [43, 91, 52, 80, 67, 34, 10, 29, 11, 74]

SOLUTION: 2

PROBLEM: [115, 108, 101, 94, 87, 80, 73, 66, 59, 52, 45, 38, 31, 24]

SOLUTION: 1

PROBLEM: [176, 171, 166, 161, 156, 151, 146, 141, 136, 131, 126, 121, 116, 111, 106, 101, 96, 91, 86, 81, 76, 71, 66, 61, 56, 51, 46]

SOLUTION:
1