Pergunta de entrevista da empresa Google

one easy-ish question one dynamic programming