Two Sigma Interview Question

A recursive word search question.