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

Input: Consider Input: [68, 33, 21, 85, 24, 59, 93, 55, 78, 13]

Output: 2


Input: Consider Input: [67, 60, 74, 40, 18, 15, 84, 36, 52, 31]

Output: 2


Input: Consider Input: [43, 48, 53, 58, 63, 68, 73, 78, 83, 88, 93, 98, 103, 108, 113, 118, 123, 128, 133, 138, 143, 148, 153, 158, 163, 168, 173]


Output: 1