Adds solution for Recycled Numbers in Python and imperative style