Google Interview Question

DSA, dynamic programming, Backtracking, Trees