Use iteration instead of recursive
Use iteration instead of recursive