Megvii Interview Question

How do you solve the 3-sum question?