Citi Interview Question

Explain to me how does a bank function and profit.