Pregunta de entrevista de Amazon

Write SQL to Find groups having exactly three different tags.