Types: n: int, m: int, a: List[str]
Ranges: 1 ≤ n ≤ 100, m ≤ n, a[i] in {'A', 'B', 'C', 'D'}
Addtl Info: None