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: [35, 42, 49, 56, 63, 70, 77, 84, 91, 98, 105]

SOLUTION: 1

PROBLEM: [61, 60, 12, 84, 10, 39, 90, 92, 6, 38]

SOLUTION: 2

PROBLEM: [16, 15, 94, 30, 83, 56, 81, 47, 78, 5]

SOLUTION:
2