Coding Questions on Sorting