So I tried using quicksort for finding the kth smallest element in a vector. But while implementing it my logic is somewhere wrong. And so Im getting wrong answer.I used rand() to generate pivot indexes randomly then shift the pivot index to the right most side of the vector. Check this out:So I tried using quicksort for finding the kth