Google interview question

They ask about greedy algorithm and dynamic programming.