Expedia Group interview question

anagrams