Vodafone interview question

Check two strings for same characters