Find Sum at level K

How do I build this tree : using recursion or stack?

Is it possible to build tree in the above case using stack as I had built it using recursion?

Please answer anyone … TA’s?