Pergunta de entrevista da empresa American Express

Given two strings, check if they have the same characters.