Frage im Vorstellungsgespräch bei Amazon

Different sorting algorithms, how does quick sort and heap sort work