Driver code
public static void main ( String [ ] args ) { int arr [ ] = { 2 , 36 , 1 , 9 , 2 , 0 , 1 , 8 , 1 } ; int N = arr . length ; System . out . println ( calculate_maximum_splits ( arr , N ) ) ; } }