public static void maxLengthSubSequence(int[] array) {
int start = 0;
int end = 0;
int length = 0;
int maxlen = 0;
for (int i = 0; i < array.length - 1; i++) {
if (array[i] >= array[i + 1]) {
start = i + 1;
end = start;
} else {
end = i + 1;
}
length = end - start + 1;
if (length > maxlen) {
maxlen = length;
}
}
System.out.println(maxlen);
}