Pergunta de entrevista da empresa ConnectWise

They asked me to design a function to find the first non-repeating character in a string and explain its time complexity.