Refine 4sum of leetcode