Triplet sum Array

Can we solve this question with O(n)?
https://hack.codingblocks.com/contests/c/509/215

Best solution i know is O(N^2). I dont think it can be solved in better complexity.