Amelia Interview Question

Binary Tree problem statement for finding the relation between the nodes specified.