4Sum O(n^2logn)

time complexity is O(n^2logn), space complexity is O(n^2)