Topic: Stack Problem / Level: advanced

Problem: Design a stack-based algorithm to solve the problem of determining if a binary tree contains a root-to-leaf path with a given sum.

Run the code to see the output here...