Implement quicksort by hand.
Asked in the round 3 (coding) stage. Implement the algorithm without calling Python's built-in sorting functions.
Define quicksort(nums), where nums is a list of integers. Sort the list in place and return the same list. Empty and single-element lists are valid.
def quicksort(nums):