SarvM.ai interview question

Basic dsa question on arrays