Question d’entretien chez Meta

write some code, analyze the worst case complexity