When the actual inflation rate turns out to be greater than the expected inflation rate

When the actual inflation rate turns out to be greater than the expected inflation rate, who gains—the borrower or the lender—and who loses? Explain why.