Question d’entretien chez Siemens

write the algorithm for finding mean of the array elements