Showing run time error


find sum at k’th level

your calculation of sum at level k doesn’t first check if the node is null or not

I think this should work