Oscar Health interview question

An array question. and the time complexity