Distinction Dev interview question

Basics of javascript, mongodb query questions.