Pergunta de entrevista da empresa XYZ

“They asked me to design an algorithm that finds the first non-repeating character in a string, optimize it for time complexity, and then walk through edge cases.”