Program to check whether given strings are anagrams or not

ANAGRAM:Given two strings are said to be anagrams only when they are formed with same characters with characters repeating same number of times.
For example:
SKILL
KILLS
Here

character
count in string one
count in string two
s
1
1
k
1
1
i
1
1
l
2
2
Hence we can say those two strings are ANAGRAMS
APPROACH TO SOLVE THE PROBLEM
The approach can be used is sort the two strings using any sorting technique and check if both strings are equal
Other approach can be for all the characters in string one find count of occurrence of character in each string if they are equal then they are ANAGRAMS
Code for first approach will be
HOPE THIS HELPS........
HAPPY CODING.........