Pregunta de entrevista de Snowflake

Backtracking, divide and conquer on array.