Solution to 'Unique elements'