Cargo Chief Interview Question

questions based on higher functions in javascript