개선 코드LINQ 버전using System;using System.Linq;public class Solution { public int solution(string my_string) { return my_string.Where(char.IsDigit).Sum(ch => ch - '0'); }}- Where(char.IsDigit) : char.IsDigit 메서드를 각 문자에 적용해서 숫자인 것만 필터링- Sum(ch => ch - '0') : 필터링된 각 char에 대해 ch - '0' 변환 후 합계 +) char.IsDigit(string, index) 사용해서 푼 버전* index가 필요하므로, foreach말고 for문 쓰 (가능하긴함)using System;usi..