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:
[199, 189, 179, 169, 159, 149, 139, 129, 119, 109, 99, 89, 79, 69, 59, 49, 39, 29, 19]
answer:
1


question:
[26, 12, 54, 82, 85, 23, 51, 88, 60, 11]
answer:
2


question:
[156, 146, 136, 126, 116, 106, 96, 86, 76, 66, 56, 46, 36, 26]
answer:

1