find the number of triplets with given sum .
This is a solution to the Split Array Largest Sum problem on LeetCode.
This is a solution to the Sum of Square Numbers problem on LeetCode.