Siemens Interview Question

find kth element in sorted and unsorted array