get threesum with given target value