Pregunta de entrevista de Bolt

Average array program. it was easy to solve.