Finally, I received this Book named Data Structures & Algorithms in Swift (Third Edition) and when I read the chapter 7 and I want to use recursive implementation to finish Challenge 4. Now I show my code:
@richmond_jam Thanks very much for your post. Do you have a question? What seems to be the problem?
No thanks. I just share a different way to solve this question