American Express interview question

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