GlobalLogic interview question

Write the full algorithm of quicksort