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: [98, 33, 77, 20, 75, 1, 47, 0, 11, 5]

SOLUTION: 2

PROBLEM: [53, 89, 39, 0, 3, 90, 61, 56, 13, 34]

SOLUTION: 2

PROBLEM: [69, 49, 60, 58, 48, 82, 21, 83, 26, 67]

SOLUTION:
2