Microsoft Interview Question

3 sum problem from lc