I am trying to solve this problem in js: Given an array and a value in javascript, find if there is a triplet in array whose sum is equal to the given value. If there is suc