public class string {
public static void main(String[] args) { int []a = new int[]{2,3,4,5,8,1}; System.out.println(fun(a, a.length)); }
private static boolean fun(int[] a, int length) { if(length == 1) return true; else return fun(a, length - 1) && (a[length -1] > a[length - 2]); }
}