Arrays-Target Sum Triplets

my code is compiling correctly and gives desired output but its Not submitting.
My code

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scn = new Scanner(System.in);

	int N = scn.nextInt();
	int[] arr = new int[N];
	
	for(int i =0; i<arr.length; i++) {
		arr[i]=scn.nextInt();
	}
	Arrays.sort(arr);
	
	int target = scn.nextInt();
	tripleSum(arr,target);
} 

public static void tripleSum(int[]arr , int target) {
	int i;
	for(i=0; i<arr.length; i++){
		
		int start = i+1;
		int 
		
}