Domanda di colloquio di Rakuten

A question about going through anagrams.