Google Interview Question

Given an array of strings. Group in a specified (a bit intricate) way.