Domanda di colloquio di Infosys

How would you handle this situation in MongoDB?