Question d’entretien chez Meta

Solve a coding question with relatively high efficiency.