Which of the following is the correct condition for two strings to be anagrams?
Both strings must have the same length and contain the same characters in any order.
Both strings must have the same length and contain only vowels.
Both strings must have the same length and contain different characters.
Both strings must have the same length and contain characters in the same order.
This question is part of this quiz :
Quiz on String for DSA