Domanda di colloquio di Zalando

Strings are immutable, comment please. Thread-safety. Write code that finds if two string have the same chars (including quantity).