Find Kth Ranked Element - Coding problem | OneNoughtOne