IBM Interview Question

dsa coding question 2 question of array