Pregunta de entrevista de Material

Basic Javascript Questions about Higher Order Functions and asked to code it.