find three elements in unsorted array with the sum of these 3 to be a specified value