Problem
Return true if arr is in non-decreasing order (each element >= the previous).
Examples
isSorted([1, 2, 2, 5]) -> trueisSorted([3, 1, 2]) -> false
Return true if arr is in non-decreasing order (each element >= the previous).
isSorted([1, 2, 2, 5]) -> trueisSorted([3, 1, 2]) -> false