Question d’entretien chez Oscar Health

An array question. and the time complexity