Pregunta de entrevista de Groupon

Usual algorithmic problems you would expect.