Cognizant interview question

They given two programs to explain on decorator and functions