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:
[33, 43, 53, 63, 73, 83, 93, 103, 113, 123, 133, 143, 153, 163]
answer:
1


question:
[27, 37, 47, 57, 67, 77, 87, 97, 107, 117, 127, 137, 147, 157, 167, 177]
answer:
1


question:
[12, 88, 35, 86, 62, 67, 7, 45, 9, 72]
answer:

2