Infosys interview question

mongodb working