Obter a soma dos orçamentos das pessoas
Crie uma função que recebe um array de objetos Person e retorna a soma de seus orçamentos.
Exemplos
Program.GetBudgets(new[]
{
new Person("John", 21, 23000),
new Person("Steve", 32, 40000),
new Person("Martin", 16, 2700)
}) ➞ 65700
Program.GetBudgets(new[]
{
new Person("John", 21, 29000),
new Person("Steve", 32, 32000),
new Person("Martin", 16, 1600)
}) ➞ 62600