Pregunta de entrevista de Workday

Basic algorithm problems (1st repeated character)