Pregunta de entrevista de Anonymous

It was dp + hashing and array based