Ad
  • Custom User Avatar

    You have to consider the possibility of there not being enough of a particular letter in str1 to meet the needs of str2. For exaample, scramble('a', 'aa') is false because str1[0] is used by str2[0] and isn't available to be used again by str2[1].