SmartPay interview question

Explain quick sort and do an example line by line.