ByteDance interview question

leetcode normal question. the question was 3sum