Mastercard interview question

check if two strings were anagram