Group Anagrams — C# Coding Problem
Difficulty: medium | Category: string
Problem Description
Given an array of strings `strs`, group the anagrams together. You can return the answer in any order. Two strings are anagrams if one is a rearrangement of the other's letters.
Examples
Example 1
Input: strs = ["eat","tea","tan","ate","nat","bat"]
Output: [["bat"],["nat","tan"],["ate","eat","tea"]]
Explanation: All anagrams are grouped together.
Example 2
Input: strs = [""]
Output: [[""]]
Example 3
Input: strs = ["a"]
Output: [["a"]]