Given a list of transactions, identify the first transaction that appears more than once and return its index.
Return the index of the repeated occurrence, meaning the position where the duplicate is first detected. Return -1 if every transaction is unique. Implement first_repeated_transaction(transactions), where transactions is a list of hashable transaction identifiers and the result is an integer.
def first_repeated_transaction(transactions):