Ad

Create a function that returns the sum of the ASCI-value of each char in the given string.

using System;
namespace Solution{
  public class ToAsci
  {
      public static int getAsciSum(string s)
          {
              int returner = 0;
              foreach (var el in s)
                  returner += (int)el;
              return returner;
          }
  }
}