Difficulty Level: MEDIUM
Problem Statement:
Given an array of strings strs, group the anagrams together. You can return the answer in any order.
An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
Input:
strs = ["eat", "tea", "tan", "ate", "nat", "bat"]
Output:
[["eat","tea","ate"],["tan","nat"],["bat"]]
Explanation:
- "eat", "tea", and "ate" are anagrams of each other.
- "tan" and "nat" are anagrams of each other.
- "bat" is not an anagram of any other string.