Check if Array is Sorted

Given an array of integers, check whether the array is sorted in non-decreasing order.

Difficulty:

Console