Each string has it’s own identified key, and we need to sort the string to clustering them into the correct group.
Algorithm Analysis
By switching String into a Character Array and sort that array to get a key String, we usd that key to identify the group. I have used that keyString to recognized if the string is the same as the previous one. If the string has existed in the Map, add that one into the List in the Map.