IXL Learning Interview Question

Modify an input array of strings in-place so that all subsets are 'complete'