DXRacer Interview Question

Hand write quick sort in JavaScript.