public static void Main()
string input = "Sample Case";
string charVowel = vowel(input);
charVowel = String.Concat(charVowel.OrderBy(ch => ch));
string charConsonant = consonant(input);
charConsonant = String.Concat(charConsonant.OrderBy(ch => ch));
Console.WriteLine("Vowel Characters : ");
Console.WriteLine(charVowel);
Console.WriteLine("Consonant Characters : ");
Console.WriteLine(charConsonant);
public static string vowel(string text)
public static string consonant(string text)
var vowels = "bcdfghjklmnpqrstvwxyz";