
    Given a customer's chronological credit card transaction history, identify the transaction amount at a specific position 'k' in the sequence to help fraud investigators analyze potential suspicious activity patterns. The position 'k' is counted from the start of the transaction history, with the first transaction being position 1.
    

    
def kth_element(arr, k):
    """
    Given a customer's chronological credit card transaction history, identify the transaction amount at a specific position 'k' in the sequence to help fraud investigators analyze potential suspicious activity patterns. The position 'k' is counted from the start of the transaction history, with the first transaction being position 1.
    

    """
def kth_element(arr, k):
    """
    Given a customer's chronological credit card transaction history, identify the transaction amount at a specific position 'k' in the sequence to help fraud investigators analyze potential suspicious activity patterns. The position 'k' is counted from the start of the transaction history, with the first transaction being position 1.
    

    """
    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]