Siemens interview question

find kth element in sorted and unsorted array