export function mostUsedChar(text) {
let arrChar;
arrChar = text.split('');
let countCharMax = 1;
let countChar = 0;
let char;
for (let i=0; i<arrChar.length; i++)
{
for (let j=i; j<arrChar.length; j++) {
if (arrChar[i] == arrChar[j])
countChar++;
if (countCharMax<countChar) {
countCharMax=countChar;
char = arrChar[i];
}
countChar = 0;
} return char;