How esters formed?

Can you answer this question?