FourSum solution