Meta interview question

solve 3-sum and breakword problem