Pregunta de entrevista de Electronic Arts

Coding interview question using data structures and/or dynamic programming