path to store the path from the root to the given label.level = floor(log2(label)).path list.start = 2^level and end = 2^(level+1) - 1.
b. Find the mirror of the label in the current level using mirror = start + end - label.
c. Find the parent of the mirror by dividing it by 2 and add it to the path list.
d. Update the label to be the parent for the next iteration.path list to get the path from the root to the given label.path list.