Inceptio interview question

3sum coding problem, follow up 4 sum coding problem