Pergunta de entrevista da empresa Google

Way back years ago, I was asked to implement the NP-hard 3-set algorithm on the spot.