Complexity O(n^4). O_O