각 자리 별 Weight를 계산해둔 배열을 반환하는 함수 @param M 패턴 문자열의 길이 @return weights[i] := 오른쪽에서 i번째 문자에 곱할 가중치
(int M)
source not stored for this graph (policy: none)
no outgoing calls
no test coverage detected