Example Of Recursive Algorithm Python