Pregunta de entrevista de Google

Stable matching problem modified for students and courses.