FDM Group interview question

How would you split these set of string into its categories?