Pregunta de entrevista de Harman Contracting Services

Coding problem on hashmap and dynamic programming