How to dry rur iteration of a recursive function | Sololearn: Learn to code for FREE!