Pregunta de entrevista de Eightfold

Merging documents based on ranking