instruction:
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
question:
[55, 27, 83, 68, 4, 81, 88, 70, 52, 11]
answer:
2


question:
[17, 24, 31, 38, 45, 52, 59, 66, 73, 80, 87, 94, 101, 108]
answer:
1


question:
[163, 154, 145, 136, 127, 118, 109, 100, 91, 82, 73, 64, 55, 46, 37]
answer:

1