Genentech interview question

What is a buffer and how does it work?