Question d’entretien chez Google

Had one algorithm/coding question to solve per interview.