Pregunta de entrevista de Solution Street

Database query with JOIN, coding question