Socienta interview question

map -> filter -> reduce on node js