3sum solution