Please read the following restrictions before answering
the question below:
Restrictions:
– Do not import any modules other than math and
check.
– You are always allowed to define your own helper/wrapper
functions. Do not use Python constructs from later
modules (e.g. dictionaries, zip, anything with sets or enumerators,
list comprehension, commands continue or break).
– Abstract list functions and recursion will not be
allowed.
Use only the functions and methods as
follows:
∗ abs, len, max, min, sum, range...