Coforge Interview Question

Program to check an array of values are in ascending order or not ?