Solución
solution.tsTypeScript
export function intercalateChars(first: string, second: string): string {
let result: string[] = []
const minLength = Math.min(first.length, second.length)
for (let i = 0; i < minLength; i++) {
result.push(first[i], second[i])
}
if (first.length > minLength)
result.push(first.slice(minLength))
if (second.length > minLength)
result.push(second.slice(minLength))
return result.join("");
}0respuestas