Encontre o primeiro caractere que não se repete
Crie uma função que aceite uma string como argumento e retorne o primeiro caractere que não se repete.
Exemplos
first_non_repeated_character("g") ➞ "g"
first_non_repeated_character("it was then the frothy word met the round night") ➞ "a"
first_non_repeated_character("the quick brown fox jumps then quickly blows air") ➞ "f"
first_non_repeated_character("hheelloo") ➞ False
first_non_repeated_character("") ➞ FalseObservações
- Uma string vazia deve retornar
False. - Se todos os caracteres se repetirem, retorne
False. - Não se preocupe com distinção entre maiúsculas e minúsculas nem com caracteres não alfanuméricos.