Dessign the function @intervalo_suma_cero(f, i)@ that, given a list
of integers and an integer
such that
,
returns the smallest value
such that the sum of the elements in
from position
to position
is zero. If there is no such value, it will return -1.
Sample session
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.