fix the output limit exceeded for solution of 3 sum