Question d’entretien chez Nextdoor

Sorting question, basic leetcode problem