Source Code
t= int(input())
import string

for i in range(t):
	problem = input()
	if "".join(sorted(problem)) == "ABCDEFGHIJKLM":
		print("YES")
	else:
		print("NO")
Copy
Well-indexed? acaard
Python 3
123 ms
4.1 MB
Accepted