Pergunta de entrevista da empresa Susquehanna International Group

Given two strings, get the characters common to both.