Yahoo interview question

Select kth smallest element