Difference of squares solution.