IBM interview question

dsa coding question 2 question of array