Citi interview question

Explain to me how does a bank function and profit.