https://practice.geeksforgeeks.org/problems/brothers-from-different-root/1