QUESTION LINK:-https://www.geeksforgeeks.org/given-a-sequence-of-words-print-all-anagrams-together-using-stl/
ATTEMPT LINK:-https://ide.geeksforgeeks.org/AHWrZpe0NR
Please explain why I am getting segmentation fault.
Don’t write a new solution, just change my solution or discuss what exactly is wrong with my solution.