How does ampicillin work?

Can you answer this question?