Question d’entretien chez Revolut

How would you find 2 (or 4, or N) minimum numbers in array?