Google interview question

Algorithms, data structure, trees, dynamic programming