Halborn Interview Question

How does a transaction in Solana work?