Use O(n^2) time, TLE