Types: N: int, s: List[str], t: List[int], X: str  
Ranges: 1 ≤ N ≤ 50, 1 ≤ len(s[i]) ≤ 100, 1 ≤ len(X) ≤ 100, 1 ≤ t[i] ≤ 1000  
Addtl Info: s consists of lowercase English letters, s contains distinct elements, X is one of the elements in s  