Pregunta de entrevista de Revolut

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