Smallpdf interview question

clousure in javascript