function  anagram(str1, str2)
l1 = length(str1);
l2 = length(str2);
sort1 = sort(str1);
sort2 = sort(str2);
a = (l1 == l2) && all(sort1 == sort2);
yMsg = ['yes';'no!'];
fprintf('%s\n', yMsg(2-a,:));
end

