Encontre a diferença

Published by Deep Xavier in

São fornecidas duas strings s e t.

A string t é gerada embaralhando aleatoriamente a string s e depois adicionando mais uma letra em uma posição aleatória.

Retorne a letra que foi adicionada a t.

Exemplos

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

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

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

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

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

Notas

N/A