Maratona de 25 milhas

Published by SyntaxGardener in

Retorne true quando a soma dos valores absolutos do array de inteiros for exatamente 25. Retorne false para um array vazio.

Exemplos

Program.MarathonDistance(new[] { 1, 2, 3, 4 }) ➞ false

Program.MarathonDistance(new[] { 1, 9, 5, 8, 2 }) ➞ true

Program.MarathonDistance(new[] { -6, 15, 4 }) ➞ true