#C6588. Special String Checker
Special String Checker
Special String Checker
Given a string, determine whether it is a "special" string. A string is considered special if and only if every character in the string is one of the following: ( a, e, i, o, u, b, c, d, f ). You are required to process multiple test cases. For each test case, output "YES" if the string is special, otherwise output "NO".
inputFormat
The first line of input contains a single integer ( T ) (( 1 \leq T \leq 10^4 )) indicating the number of test cases. Each of the following ( T ) lines contains a non-empty string consisting of lowercase English letters.
outputFormat
For each test case, print a single line containing either "YES" or "NO". Print "YES" if the string consists solely of the allowed characters ( {a, e, i, o, u, b, c, d, f} ), and "NO" otherwise.## sample
3
abc
aeiouxyz
bdf
YES
NO
YES
</p>