Question d’entretien chez Johnson Controls

Devise an algorithm to check if two strings are anagrams.