Techweirdo interview question

About map reducer in javascript