Mygate interview question

find the longest ascending order sub array in array.