Paycom interview question

Easy Anagram question for coding. General GFG puzzles.