Microsoft interview question

3-sum problem, litcode style in hard level