Inceptio Interview Question

3sum coding problem, follow up 4 sum coding problem