CAST interview question

Program to implement closure?