Question d’entretien chez Google

A simple mathy question, and a simple algorithm question