Check if given sum is present in given leaf to path sum