Time Complexity For Sorting An Array