Pangram Checker
InterviewTime limit3sMemory limit256 MB
Count how many times each English letter appears in every sentence and print its pangram grade.
Problem
A pangram uses every English letter at least once. A double pangram uses each letter at least twice, and a triple pangram at least three times. Classify each given sentence.
Input
The first line contains the number of test cases . Each of the next lines is a sentence with English letters and punctuation.
Output
For each case, print Case i: followed by Not a pangram, Pangram!, Double pangram!!, or Triple pangram!!!. Print only the highest matching grade.