Topic: Array Problem / Level: beginner

Problem: Check if an array is monotonic (either entirely non-increasing or non-decreasing).

Run the code to see the output here...