SmartPay Interview Question

Explain quick sort and do an example line by line.