Encuentra el primer carácter que no se repite
Crea una función que acepte una cadena como argumento y devuelva el primer carácter que no se repite.
Ejemplos
firstNonRepeatedCharacter("g") ➞ "g"
firstNonRepeatedCharacter("it was then the frothy word met the round night") ➞ "a"
firstNonRepeatedCharacter("the quick brown fox jumps then quickly blows air") ➞ "f"
firstNonRepeatedCharacter("hheelloo") ➞ false
firstNonRepeatedCharacter("") ➞ falseNotas
- Una cadena vacía debe devolver
false. - Si todos los caracteres se repiten, devuelve
false. - No te preocupes por distinguir entre mayúsculas y minúsculas ni por los caracteres no alfanuméricos.