Sobes.tech
Intern — Senior

Checking the equality of character sets in two strings

livecode

Task condition

Implement a function that takes two strings and returns true if both strings consist of the same set of characters and each character appears the same number of times, regardless of the order of characters.

# dog, dgo   → true  
# dog, dfo   → false  
# doog, ddog → false