Arrays-Target Sum Triplets

if we are solving using the hint and i take two inputs having then we are missing one case so it should be in O(n^2 logn) without the use of hashing ???

Time complexity of solution discuss in hint is O(n^2);