Amazon interview question

Find the kth smallest element of an array.