Encuentra la diferencia

Published by Deep Xavier in

Se te dan dos cadenas s y t.

La cadena t se genera barajando aleatoriamente la cadena s y luego agregando una letra más en una posición aleatoria.

Devuelve la letra que se agregó a t.

Ejemplos

findTheDifference("", "t") ➞ "t"

findTheDifference("abcd", "abcde") ➞ "e"

findTheDifference("rt", "rst") ➞ "s"

findTheDifference("gjklmn", "ghjklmn") ➞ "h"

findTheDifference("ae", "aea") ➞ "a"

Notas

N/A