Pregunta de entrevista de Intuit

A question using hashmaps, and then a question using dynamic programming.