Cognizant interview question

bubble sort, quick sort, parking allotment question/algorithm