Function that returns if the String x is a pangram
static bool Pangram ( String x ) { Dictionary < char , int > mp = new Dictionary < char , int > ( ) ; int n = x . Length ; for ( int i = 0 ; i < n ; i ++ ) { if ( mp . ContainsKey ( x [ i ] ) ) { mp [ x [ i ] ] = mp [ x [ i ] ] + 1 ; } else { mp . Add ( x [ i ] , 1 ) ; } } if ( mp . Count == 26 ) return true ; else return false ; }