Question d’entretien chez Google

Data structures and a Discrete math problem.