Compute minimum added stones to balance a tree | Reinforce Labs Interview Question