Pregunta de entrevista de Better

Javascript based coding question which involves closures and currying.