Google interview question

Backtracking question with array sums.