Amdocs Interview Question

Write a function that checks if two strings are an anagram.

Interview Answer

Anonymous

Dec 7, 2019

Simply string to array then Sort, and Filter out any empty strings. The Sort will give you the correct order to compare the strings and return True.