What is a student exchange program and how does it work?

What is a student exchange program and how does it work?