Better Interview Question

Javascript based coding question which involves closures and currying.