Complete two sums problem