Implement Quicksort algorithm.
Asked in the Technical Round 2 stage. This is a classic sorting implementation question.
Implement quicksort(nums) to sort the input list in ascending order in place and return the same list object.
nums is a list of integers. Return nums after sorting it in ascending order. Handle duplicate, negative, empty, and already sorted inputs.
def quicksort(nums):