T(n^2)