FDM Group Interview Question

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