TLE error coming

import java.util.*;
public class Main {

public static void main(String[] args) {
	// TODO Auto-generated method stub
	Scanner s=new Scanner(System.in);
	int N=s.nextInt();
	int A[]=new int[N]; 
	for(int i=0;i<N;i++){
		A[i]=s.nextInt();
	}
	int length=A.length;
Main qs=new Main();
qs.quicksortre(A, 0, length-1);
qs.print(A);
	
	
}
	
	int partiton(int[] arr,int low,int high) {
		int pivot=arr[low+high/2];
		while(low<=high) {
			while(arr[low]<pivot) {
				low++;
			}
			
			while(arr[high]>pivot) {
				high--;
			}
			
			if(low<=high) {
				int temp=arr[low];
				arr[low]=arr[high];
				arr[high]=temp;
				
				low++;
				high--;
			}
			
		}
		
		
		return low;
	
}

void quicksortre(int arr[],int low,int high) {
	int pi=partiton(arr,low,high);
	if(low<pi-1) {
		quicksortre(arr,low,pi-1);
	}
	if(pi<high) {
		quicksortre(arr,low,pi);
	}
}

void print(int[] arr) {
for(int p:arr) {
System.out.print(p+" ");

}

}

}

Can you pls guide me through where I am going wrong

@saurabhananta,
Are you sure this is the code for this particular question you have tagged?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.