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 diferenças entre maiúsculas e minúsculas nem com caracteres não alfanuméricos.