1588. Sum of All Odd Length Subarrays solution#1: Brute Search; code solution#2: 元素求和; code solution#3: 找规律; code: