Aspire Systems Interview Question

In tech 2 round they asked Anagram question