Your website is divided vertically in sections, and each can be of different size (height).  
You need to establish the section index (starting at `0`) you are at, given the `scrollY` and `sizes` of all sections.  
Sections start with `0`, so if first section is `200` high, it takes `0-199` "pixels" and second starts at `200`.

### Example:

`getSectionIdFromScroll( 300, [300,200,400,600,100] )`

will output number `1` as it's the second section.

`getSectionIdFromScroll( 1600, [300,200,400,600,100] )`

will output number `-1` as it's past last section.

Given the `scrollY` integer (always non-negative) and an array of non-negative integers (with at least one element), calculate the index (starting at `0`) or `-1` if `scrollY` falls beyond last section (indication of an error).

Difficulty: EASY
Starter code: def get_section_id(scroll, sizes):
	

Solutions:
def get_section_id(scroll, sizes):
	c = 0
	for (idx, s) in enumerate(sizes):
		c += s
		if scroll < c:
			return idx
	return -1


from itertools import accumulate

def get_section_id(scroll, sizes):
	return next((i for (i, x) in enumerate(accumulate(sizes)) if x > scroll), -1)


def get_section_id(scroll, sizes):
	if scroll >= sum(sizes):
		return -1
	return sum((scroll >= sum(sizes[:i + 1]) for i in range(len(sizes))))


from itertools import takewhile, accumulate

def get_section_id(scroll, sizes):
	return -1 if sum(sizes) <= scroll else sum((1 for _ in takewhile(scroll.__ge__, accumulate(sizes))))


def get_section_id(scroll, sizes):
	where = 0
	for i in range(len(sizes)):
		where += sizes[i]
		if where > scroll:
			return i
	return -1


def get_section_id(scroll, sizes):
	for (i, _) in enumerate(sizes):
		if scroll < sum(sizes[:i + 1]):
			return i
	return -1


from bisect import bisect
from itertools import accumulate

def get_section_id(scroll, sizes):
	return bisect(list(accumulate(sizes)), scroll) if scroll < sum(sizes) else -1


def get_section_id(scroll, sizes):
	for (i, s) in enumerate(sizes):
		scroll -= s
		if scroll < 0:
			return i
	return -1


def get_section_id(scroll, sizes):
	a = 0
	for i in sizes:
		scroll -= i
		if scroll < 0:
			return a
		a += 1
	return -1