If the current node value is greater than or equal to k , then all the subtrees following that node will get printed , flag = 1 indicates to print the required path
if root . data >= k : NEW_LINE INDENT flag = 1 NEW_LINE DEDENT