message: Updated code for the CodeChef problem with comments
diff: #include <iostream>
  using namespace std;
  -int fact(int num)
  +int fact(int num) // function to print factorial of a number num
  {
  if (num==0)
  return 1;
  @@ -16,15 +16,15 @@ int main() {
  { int p,q;
  string s;
  cin>>s;
  - cin>>p>>q;
  - int con=0,vow=0;
  - for(int k=0;k<s.length();k++)
  + cin>>p>>q; // given vowels and consonants
  + int con=0,vow=0; // total vowels and consonants in the starting
  + for(int k=0;k<s.length();k++) // count the number of vowels and consonants
  { if(s[k]=='a' || s[k]=='e' || s[k]=='i' || s[k]=='o' || s[k]=='u' || s[k]=='A' || s[k]=='E' || s[k]=='I' || s[k]=='O' || s[k]=='U')
  vow++;
  else
  con++;
  }
  -
  + // calculating C(con,p) in a1 and C(vow,q) in a2
  long int x1=fact(p);
  long int y1=fact(con);
  long int z1=fact(con-p);
  @@ -34,7 +34,7 @@ int main() {
  long int z2=fact(vow-q);
  long int a2= y2/(x2*z2);
  - long int ans=a1*a2*fact(p+q);
  + long int ans=a1*a2*fact(p+q); // total arrangements possible
  cout<<ans<<endl;
  }
  return 0;
  