Use tail-recursion
Add solutions