Zaber Technologies interview question

- write a function to check if array is in sorted order