Domanda di colloquio di Google

Dynamic programming problem and array membership problem