First implementation, convert to 2Sum, use two pointers to solve 2Sum