Amazon interview question

Write algo for 3 Sum