DIY: Monotonic Array

Solve the interview question "Monotonic Array" in this lesson.

Problem statement

An array is monotonic if ...