Arrays Target Sum Triplets

It displays “ERROR” while running code

Basically, you are solving this question with complexity o(n^3), which is very large for n=10^3, which gives 10^9, and we can maximum of 10^8 complexity only, try to solve this in o(n^2), using left or right pointer concept as given in hint video of course