Pregunta de entrevista de Mygate

find the longest ascending order sub array in array.