Amazon Interview Question

Find the kth smallest element of an array.