Cognizant Interview Question

bubble sort, quick sort, parking allotment question/algorithm