ACT21 Software interview question

one dsa ques related to array was askedd too