Agoda Interview Question

Find pivot in the quicksort algorithm.