Siemens Interview Question

Check 2 strings if they are anagram