InterviewDB Question

Depth Weighted Sum