Function to find the number of words of X vowels and Y consonants can be formed from M vowels and N consonants
int NumberOfWays ( int X , int Y , int M , int N ) { return fact ( X + Y ) * nCr ( M , X ) * nCr ( N , Y ) ; }