Time: O(n^2) - not good