Broadcom Interview Question

I was asked to write a quick sort algorithm on a whiteboard in pseudo code.