Lucid Software interview question

Check if an array is increasing