Meta Interview Question

Check if list is monotonic or not