ByteDance Interview Question

leetcode normal question. the question was 3sum