Pergunta de entrevista da empresa US Navy

How does a sailboat move upwind?