Domanda di colloquio di Amazon

Write SQL to Find groups having exactly three different tags.