Consider a C function print() which takes a root of binary search tree and a positive number $‘k’$ as arguments as given below:
struct node
{
int data;
struct node *left, *right;
};
int count = 0;
void print(struct node *root, int k)
{
if (root!=NULL && count < k)
{
print(root -> right, k);
count++;
if(count == k)
printf("%d", root -> data);
print(root -> left, k);
}
}
What is the sum of all the values output by print(root, $2$), where root represents root of the following Binary Search Tree? (You can assume the binary search tree to be terminated properly by NULLs)