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

Ex Input:
[23, 33, 43, 53, 63, 73, 83, 93, 103, 113, 123, 133, 143, 153]

Ex Output:
1


Ex Input:
[28, 37, 46, 55, 64, 73, 82, 91, 100, 109, 118, 127]

Ex Output:
1


Ex Input:
[166, 159, 152, 145, 138, 131, 124, 117, 110, 103, 96, 89, 82, 75, 68, 61, 54, 47, 40, 33, 26]

Ex Output:

1