
    Given a sequence of vital sign readings from a patient's wearable monitor, develop a function that quickly identifies the specific vital sign measurement at a given checkpoint position in the monitoring timeline, where positions are counted starting from 1. For example, if medical staff need to review the 5th recorded vital sign in a sequence of measurements, the function should efficiently locate and return that specific health metric value.
    

    
def kth_element(arr, k):
    """
    Given a sequence of vital sign readings from a patient's wearable monitor, develop a function that quickly identifies the specific vital sign measurement at a given checkpoint position in the monitoring timeline, where positions are counted starting from 1. For example, if medical staff need to review the 5th recorded vital sign in a sequence of measurements, the function should efficiently locate and return that specific health metric value.
    

    """
def kth_element(arr, k):
    """
    Given a sequence of vital sign readings from a patient's wearable monitor, develop a function that quickly identifies the specific vital sign measurement at a given checkpoint position in the monitoring timeline, where positions are counted starting from 1. For example, if medical staff need to review the 5th recorded vital sign in a sequence of measurements, the function should efficiently locate and return that specific health metric value.
    

    """
    n = len(arr)
    for i in range(n):
        for j in range(0, n - i - 1):
            if arr[j] > arr[j + 1]:
                (arr[j], arr[j + 1] == arr[j + 1], arr[j])
    return arr[k - 1]