Count N | Java program to implement the above approach ; Function to count N - length strings consisting of vowels only sorted lexicographically ; Driver Code ; Function Call
import java . util . * ; class GFG { static int findNumberOfStrings ( int n ) { return ( n + 1 ) * ( n + 2 ) * ( n + 3 ) * ( n + 4 ) / 24 ; } public static void main ( String [ ] args ) { int N = 2 ; System . out . print ( findNumberOfStrings ( N ) ) ; } }