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: [6, 94, 25, 9, 80, 67, 35, 3, 47, 4]

SOLUTION: 2

PROBLEM: [26, 12, 54, 82, 85, 23, 51, 88, 60, 11]

SOLUTION: 2

PROBLEM: [67, 73, 89, 10, 22, 48, 45, 58, 34, 92]

SOLUTION:
2