Maventic Interview Question

first round:anagram code second round:program about the string.