You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# For a given two strings, 'str1' and 'str2', check whether they are a permutation of each other or not.
# Permutations of each other
# Two strings are said to be a permutation of each other when either of the string's characters can be rearranged so that it becomes identical to the other one.
# Example:
# str1 = 'sinrtg'
# str2 = 'string'
# The character of the first string(str1) can be rearranged to form str2 and hence we can say that the given strings are a permutation of each other.