Tech Mahindra interview question

Javascript array based questions, es6 filters, etc