Pergunta de entrevista da empresa SecPod Technologies

DSA easy-level question on array.