Nirav's kth element challenge.