Types: n: int, wordi: str
Ranges: 2 ≤ n ≤ 10000, 1 ≤ len(wordi) ≤ 32
Addtl Info: <= 50 datasets