Accenture interview question

Mangodb question simple only to answer