Determine whether sequence is monotonic