two sum problem solved