export function mostUsedChar(text) { // implementar logica aqui let max = 0; let maxChar = ""; const splitLetras = text.split(""); splitLetras.map( char=> { const splitCaracter = text.split(char); if (splitCaracter.length > max) { max = splitCaracter.length; maxChar = char; } }); return maxChar; }