Pergunta de entrevista da empresa Oracle

given a string how do you say if all the characters exist in it. Optimize the memory