Pregunta de entrevista de LeewayHertz

How does array reduce method works?