Pergunta de entrevista da empresa Trinity Life Sciences

They asked the question in Array and Reducing the elements in array