Utility function which calculates smallest three nodes of all leaf nodes
def storeLeaf ( root : Node , arr : list ) -> None : NEW_LINE INDENT if ( not root ) : NEW_LINE INDENT return NEW_LINE DEDENT DEDENT