Question d’entretien chez Trulia

Very simple algorithm question