Pergunta de entrevista da empresa Circles

Leetcode easy. modified find palindrome and find length of longest substring without repeating characters.