Agoda interview question

Find pivot in the quicksort algorithm.