Same Tree AC