Task 2 – Use expressions instead of statements
Refactor the code below to use expressions instead of statements:
string GetTowerDamageReport(IEnumerable<Tower> towers) { int totalDamage = 0; foreach (Tower tower in towers) { if (tower.IsActive) { totalDamage += tower.Damage; } } return $"Active towers deal {totalDamage} total damage"; }