How to repeatedly iterate over list with uneven number of elements, returning even number of elements?
My code: