Similar string groups

From Rosetta Code

Deleted as is a copy of a leetcode task, and no data on permissions given.