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

Ex Output:
2


Ex Input:
[143, 137, 131, 125, 119, 113, 107, 101, 95, 89, 83, 77, 71, 65, 59, 53, 47, 41, 35]

Ex Output:

1