using System.Text; namespace Day15; public static class AsciiHash { public static byte Hash(string input) { byte result = 0; foreach (var b in Encoding.ASCII.GetBytes(input)) { result += b; result = (byte)((result * 17) % 256); } return result; } }