Question d’entretien chez Two Sigma

I got asked Word Search II leetcode question