x^2 - y^2 is a difference of squares, the factoring for which is taught in algebra 1. It's possible that your dd figured that out before it was introduced in class.

Regardless, I'll suggest that yes, of course your dd should be encouraged to persevere with her "funny little math ideas." You never know where that might lead.