Leetcode 112 Path Sum Solution Explained - C++