Eurofins Interview Question

One coding question was to check if two strings are anagrams.