1. The length of the given array is positive and will not exceed 20?
2. The sum of elements in the given array will not exceed 1000?
3. The output answer is guaranteed to be fitted in a 32-bit integer？
