rewrite 3 sum probelm to handle duplicates