Halborn interview question

How does a transaction in Solana work?