Quick sort how to improve the codes efficiency

how can i improve the efficiency of my code because one of the test case is showing timelimit exceeded

hi @anugrahrastogi
refer geeks for optimal solution