Anonymous Interview Question

It was dp + hashing and array based