Pocket Gems Interview Question

string and kth from a array. Just like other questions.