Domanda di colloquio di Big Oh Notation

interview question asked in coding round from array