Meta interview question

3sum , lots of SQL