Create two functions:
n on the left.n on the right.left_side([5, 2, 1, 4, 8, 7]) ➞ [0, 0, 0, 2, 4, 4]
right_side([5, 2, 1, 4, 8, 7]) ➞ [3, 1, 0, 0, 1, 0]
left_side([1, 2, 3, -1]) ➞ [0, 1, 2, 0]
right_side([1, 2, 3, -1]) ➞ [1, 1, 1, 0]
"Left" and "right" refer to the number at indices less than or greater than n's index, respectively.