Solución
solution.tsTypeScript
export function areAnagrams(first: string, second: string): boolean {
const normalizedFirst = first.toLowerCase()
const normalizedSecond = second.toLowerCase()
for(let i = 0; i < first.length; i++ ){
const char = normalizedFirst[i]
for(let j = 0; j < second.length; j++ ){
const found = char === normalizedSecond[j]
if(found) break
if(!found && second.length === j + 1) return false
}
}
return true;
}0respuestas