add iterative solution for sum root to leaf