Bloomberg interview question

Standard Array based question (LC Easy)