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: [115, 108, 101, 94, 87, 80, 73, 66, 59, 52, 45, 38, 31, 24]

SOLUTION: 1

PROBLEM: [81, 69, 13, 34, 10, 80, 33, 7, 86, 65]

SOLUTION: 2

PROBLEM: [19, 28, 37, 46, 55, 64, 73, 82, 91, 100, 109, 118, 127, 136, 145, 154, 163, 172, 181, 190]

SOLUTION:
1