Company: Deloitte Analyst role Off-campus_9may
Difficulty: medium
Given an integer N, a list of N positive numbers, and a value V. Write a program that prints the position at which the cumulative sum of elements in the list from the first position exceeds or equals to the given value. Read the in put from ST DIN and print the output to STDO UT. Do not write extra strings while reading the input or w hile printi ng as they contribute to the standard output. Constraints: i) 2 ≤ N ≤ 5000 ii) 1 ≤ Elements in the list ≤ 50000 iii) 1 ≤ Value V ≤ 10 5 iv) Position starts from 1. v) Each test case has a position at which the cumulative sum of elements exceeds or equal to value V. Input format: The first line of inpu t consists of an integer N. The second input line consists of N integers separated by a single white space. The third lin e input consists of a value V. Output format: The only line of output should display the position at which the cumulative sum of elements in the list from the first position exceeds or equals to V. Sample Inp