Clarivate Interview Question

Write a program for anagram