You are given a list of integers. Your task is to compute the total sum of all values in the list.
This problem is part of Stacks and Queues practice and is designed to strengthen the Monotonic Stack pattern.
Return one integer: the sum of the given values.
Input:
7
-11 7 25 43 61 -18 0
Output:
107
Explanation:
1 <= n <= 10^5-10^9 <= value <= 10^9Implement the starter function for this Easy problem. Read from the raw input string and return only the required answer, with no labels or debug text.
Run Code checks the visible sample cases. Submit checks those samples plus additional hidden cases that follow the same input format and constraints.
7 -11 7 25 43 61 -18 0
107