Microsoft interview question

Kth smallest element in sorted matrix