Pergunta de entrevista da empresa Meta

A dynamic programming question about differences in words.