LeewayHertz Interview Question

How does array reduce method works?