Attivo Networks interview question

JavaScript Prototype Chain, Quick Sort, A so called cooked up question in Angular JS