Megvii interview question

How do you solve the 3-sum question?