Implement a program that computes the sum of a subarray of 32-bit integers.
You are given an input array input of length N, and two indices S and E.
S and E are inclusive, 0-based start and end indices — compute the sum of input[S..E].
solve function signature must remain unchangedoutput variableInput: input = [1, 2, 1, 3, 4], S = 1, E = 3 Output: output = 6
Input: input = [1, 2, 3, 4], S = 0, E = 3 Output: output = 10
N ≤ 100,000,000input[i] ≤ 10S ≤ E ≤ N - 1N = 100,000,000