Pregunta de entrevista de Google

One question tested my knowledge of recursion, hashmaps, and backtracking.