What is anagram?
An anagram is a string that can be formed by rearranging the characters of a different string using all the original characters exactly once.
For example, "anagram" can be rearranged into "nag a ram", "binary" can be rearranged into "brainy".
Given two strings, we have to check whether they are anagram of each other.
Example:
Input:
String1 = "binary"
String2 = "brainy"
Output:
True
Both are anagram strings
Program to check whether two strings are anagram of each other in Kotlin
Output
need an explanation for this answer? contact us directly to get an explanation for this answer