Mygate Interview Question

find the longest ascending order sub array in array.