Anonymous interview question

DSA :3sum and max sub array