Pergunta de entrevista da empresa Workday

Basic algorithm problems (1st repeated character)