Pergunta de entrevista da empresa CEVA

2 coding question, 1 was removing duplicaes in array other was finding longest substring with 2 uniqe char