Array Map Function Javascript Es6 Interview