Pergunta de entrevista da empresa BlackRock

Given two strings, return a string with characters that appear in either one string.