Amazon Interview Question

counting sequence merge sort bubble sort