Solutions in editorila!?!?

The solutions in editorial take Nodes as parameter but when we are calling these functions from main we cant pass node as they are private

How are these solutions valid?

hey @bhavik911
How are these solutions valid?
if root node is satatic