Input should be processed as follows and passed to the function.
The first line contains an integer, n, the size of your array
The second line contains an integer, o, the number of operations
The next line contains the integer 3, the number of elements used to define each operation
o lines follow, each containing 3 space-separated integers, a, b, and k: the starting index, ending index and value to add
Sample Case 0