US Navy interview question

How does a sailboat move upwind?