Merge two BSTs with limited extra space - GeeksforGeeks

please explain me this or do a dry run for this code